package com.bestcem.xm.user.controller.vo.user.request;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * 企业微信进行公司代号及账户密码登录
 *
 * @author Linzhijian <zhijian.lin@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/29 15:30
 */
@Getter
@Setter
@ToString
public class WeChatCodeTokenVO {

    /**
     * 公司code
     */
    @JsonProperty("org_code")
    private String orgCode;

    /**
     * 用户名
     */
    @NotBlank(message = "user_name is empty.")
    @JsonProperty("user_name")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "password is empty.")
    private String password;

    /**
     * sessionId
     */
    @NotBlank(message = "session_id is empty.")
    @JsonProperty("session_id")
    private String sessionId;

    /**
     * 是否绑定
     */
    @JsonProperty("is_bind")
    private Boolean bindFlag;

}
